<template>
	<view>
		<!-- <view class="bgcolor" :style="{'background-image': 'url('+ list.image +')'}" > -->
		<view class="bgcolor">
			<cu-custom bgColor="bgmain" :isBack="true">
				<view slot="content">商家入驻</view>
			</cu-custom>
		</view>
		<view class="heads">
			<view class="heads-bg">
				<view class="cu-form-group">
					<view class="title">商家名称</view>
					<input class="title-input" placeholder="请输入店铺名称 2-10个字" v-model="name"></input>
				</view>
				<view class="cu-form-group">
					<view class="title">联系电话</view>
					<input class="title-input" placeholder="请输入店铺联系电话" v-model="phone"></input>
				</view>
				<view class="cu-form-group">
					<view class="title">详细地址</view>
					
					<input class="title-input" v-if="address" placeholder="请输入店铺地址" v-model="address"></input>
					<view class="title-address" v-else @click="adds()"> 获取位置</view>
				</view>
				<view class="cu-form-group">
					<view class="title">店铺门头</view>

					
				</view>
				<view style="" class="margin-left">
					<addImage :count="count" :images="images" :addedCount="addedCount" @chooseImage="chooseImages"
						@deleteImage="deleteImage"></addImage>
						<view class="del_remark text-sm  margin-bottom">*长按图片可进行删除</view>
				</view>
			</view>
		</view>
		<view class="heads" style="height: 327rpx;margin-top: 22rpx;">
			<view class="heads-bg">
				<view class="cu-form-group margin-top">
					<view class="title">店铺类型</view>
					<picker @change="PickerChange" :value=" index " :range=" picker " range-key="type_name">
						<view class="picker">
							{{picker[index].type_name}}
						</view>
					</picker>
				</view>

				<view class="cu-form-group">
					<view class="title">开始营业时间</view>
					<picker mode="time" :value="time" start="00:01" end="23:59" @change="TimeChange">
						<view class="picker">
							{{time}}
						</view>
					</picker>
				</view>
				<view class="cu-form-group">
					<view class="title">结束营业时间</view>
					<picker mode="time" :value="times" start="00:01" end="23:59" @change="TimeChanges">
						<view class="picker">
							{{times}}
						</view>
					</picker>
				</view>
				<!-- <view class="cu-form-group" style="border-top: 0rpx solid #eee !important;">
					<view class="title">店铺描述</view>
				</view>
				<view class="cu-form-group"
					style="border-top: 0rpx solid #eee !important;background: #F9F9F9;border-radius: 20rpx;">
					<textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput"
						placeholder="请输入店铺描述信息"></textarea>
				</view> -->
			</view>
		</view>
		<view class="heads" style="height: 427rpx;margin-top: 22rpx;">
			<view class="heads-bg" style="padding-bottom: 200rpx;height: auto;">
				<view class="cu-form-group">
					<view class="title">营业执照<text class="shop-details"></text></view>

					<!-- <view class="imagess">长按删除</view> -->
				</view>
				<view style="" class="margin-left" style="margin-top: 30rpx;">
					<addImage :count="zhizhaoCount" :images="zhizhaoimg" :addedCount="zhizhaoCounts" @chooseImage="choosezhizhaoimg"
						@deleteImage="deletezhizhaoimg()"></addImage>
						<view class="del_remark text-sm  margin-bottom">*长按图片可进行删除</view>
				</view>
				<view class="cu-form-group">
					<view class="title">食品经营许可证<text class="shop-details"></text></view>
							
					<!-- <view class="imagess">长按删除</view> -->
				</view>
				<view style="" class="margin-left" style="margin-top: 30rpx;">
					<addImage :count="jingyingCount" :images="jingyingimg" :addedCount="jingyingCounts" @chooseImage="choosejingyingimg"
						@deleteImage="deletejingyingimg()"></addImage>
						<view class="del_remark text-sm  margin-bottom">*长按图片可进行删除</view>
				</view>
				<view class="cu-form-group">
					<view class="title">健康证<text class="shop-details"></text></view>
							
					<!-- <view class="imagess">长按删除</view> -->
				</view>
				<view style="" class="margin-left" style="margin-top: 30rpx;">
					<addImage :count="jiankangCount" :images="jiankangimg" :addedCount="jiankangCounts" @chooseImage="choosejiankangimg"
						@deleteImage="deletejiankangimg()"></addImage>
						<view class="del_remark text-sm  margin-bottom">*长按图片可进行删除</view>
				</view>
			</view>
		</view>
		<view class="heads" style="height: 120rpx;margin-top: 22rpx;" v-if="schoolpays.charge_mode == 1">
			<view class="heads-bg">
				<view class="cu-form-group">
					<view class="title">保证金</view>
					<view class="title-address">{{schoolpays.charge_price}}元</view>
				</view>
			</view>
		</view>
		<view class="padding" style="position: fixed;width: 100%;bottom: 0;">
		  <view @click="submits()" class="cu-btn block bg-blue margin-tb-sm lg" disabled type="" style="border-radius: 45rpx;background: #FF5853 !important;opacity: 1;">确认提交</view>
		  <!-- <button class="cu-btn block line-blue margin-tb-sm lg" disabled>无效状态</button> -->
		</view>
	</view>
</template>

<script>
	import addImage from "@/colorui/components/upload/upload";
	// const undefined; // gc_school/pages/addsecond/index.js
	import siteInfo from '@/siteinfo.js';

	var app = getApp();
	export default {
		components: {
			addImage
		},
		data() {
			return {
				address:'',
				longitude:'',
				latitude:'',
				img_url: [],
				picLists:0,
				// count: 1,
				// canphoto: 4,
				imgurl: [],
				name: '',
				newprice: '',
				oldprice: '',
				names: '',
				desc: '',
				phone: '',
				stock: 0,
				index: 0,
				cateList: [],
				indexs: 0,
				images: [],
				imagesss:[],
				picListss:[],
				addedCountss:0,
				count: 1,
				counts:1,
				addedCount: 0,
				picList: [],
				sys: {},
				is_click: true,
				hideAdd: 0,
				time: '8:00',
				times: '18:00',
				modalName: "",
				picker: ['喵喵喵', '汪汪汪', '哼唧哼唧'],
				schoolpays:[],
				zhizhaoimg:[],
				jiankangimg:[],
				jingyingimg:[],
				zhizhaoCount:1,
				zhizhaoCounts:0,
				jiankangCount:1,
				jiankangCounts:0,
				jingyingCount:1,
				jingyingCounts:0,

			};
		},
		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad: function(options) {
			this.getCate();
			this.schoolpay();
			var that = this;
			app.globalData.util.request({
				url: 'Setting/view',
				data: {},
				success(res) {
					console.log("获取配置", res.data.data);
					that.setData({
						sys: res.data.data.sys
					});
				}

			});
		},
		/**
		 * 生命周期函数--监听页面初次渲染完成
		 */
		onReady: function() {},
		/**
		 * 生命周期函数--监听页面显示
		 */
		onShow: function() {},
		/**
		 * 生命周期函数--监听页面隐藏
		 */
		onHide: function() {},
		/**
		 * 生命周期函数--监听页面卸载
		 */
		onUnload: function() {},
		/**
		 * 页面相关事件处理函数--监听用户下拉动作
		 */
		onPullDownRefresh: function() {},
		/**
		 * 页面上拉触底事件的处理函数
		 */
		// onShareAppMessage: function () {
		// }
		onReachBottom: function() {}
			/**
			 * 用户点击右上角分享
			 */
			,
		methods: {
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			schoolpay(){
				var self = this;
				app.globalData.util.request({
					url: "Dmhsettled/schoolpay",
					method:'POST',
					data: {
						s_id: uni.getStorageSync("schoolId")
					},
				
					success(res) {
						console.log(res.data.data);
						self.setData({
							schoolpays: res.data.data.data
						});
					}
				
				},true);
			},
			//选择地址
			adds(){
				var t = this
				uni.chooseLocation({
					success(res) {
						console.log(res,'-------')
						t.longitude = res.longitude
						t.latitude = res.latitude
						t.address = res.address
						// latitude:'',
					}
				})
			},
			submits(){
				var self = this;
				app.globalData.util.request({
					url: "Dmhsettled/add",
					method:'GET',
					data: {
						s_id: uni.getStorageSync("schoolId"),
						name:self.name,
						phone:self.phone,
						longitude:self.longitude,
						latitude:self.latitude,
						address:self.address,
						image:self.images[0],
						qualifications:self.imagesss[0],
						type_id:self.picker[self.index].type_id,
						start:self.time,
						end:self.times,
						business_license:this.zhizhaoimg[0] || '', //营业执照
						food_business_license:this.jingyingimg[0] || '', //经营许可
						health_certificate:this.jiankangimg[0] || '' //健康证
					},
				
					success(res) {
						console.log(res.data.data);
						if(res.data.msg == '操作成功'){
							uni.showToast({
								title: res.data.msg,
								icon:'none',
								duration: 1000
							});
								setTimeout(function () {
								    uni.redirectTo({
								        url: '/gc_school/pages/user/index'
								    });
								}, 2000);
						}else{
							uni.requestPayment({
								...res.data.data,
								timeStamp:  res.data.data.signType == 'RSA' ?  res.data.data.timeStamp.toString() : res.data.data.timestamp.toString() ,
							    // timeStamp: res.data.data.timestamp,
							    // nonceStr: res.data.data.nonceStr,
							    // package: res.data.data.package,
							    // signType: 'MD5',
							    // paySign: res.data.data.paySign,
							    success: function (resu) {
							        app.globalData.util.request({
							            url: 'MsgSubscribe/toSeller',
							            data: {
							                ordersn: res.data.data.order_id
							            }
							        });
							        setTimeout(function () {
							            uni.redirectTo({
							                url: '/gc_school/pages/user/index'
							            });
							        }, 2000);
							    },
							    fail: function (res) {
							        console.log(res,'---11--');
									console.log('取消支付')
									//取消支付
							//         app.globalData.util.request({
							//             url: 'Dmhmarketorder/cancels',
							//             data: {
							//                 ids: self.id
							//             },
							
							//             success(res) {
							//                 // uni.redirectTo({
							//                 //     url: '/gc_school/pages/secondhand/index'
							//                 // });
							//             }
							//         });
							    }
							});
						}
					}
				
				},true);
			},
			//店铺类型请求
			getCate() {
				var self = this;
				app.globalData.util.request({
					url: "ZhBusinesType/index",
					method:'GET',
					data: {
						s_id: uni.getStorageSync("schoolId")
					},

					success(res) {
						console.log(res.data.data);
						self.setData({
							picker: res.data.data.list
						});
					}

				},true);
			},
			//店铺类型选择
			PickerChange(e) {
				console.log(e);
				this.setData({
					index: e.detail.value
				});
			},
			//店铺营业时间
			TimeChange(e) {
				this.time = e.detail.value
			},
			TimeChanges(e) {
				this.times = e.detail.value
			},
			bindPickerChange: function(e) {
				this.setData({
					index: e.detail.value
				});
			},

			bindPickerChanges: function(e) {
				this.setData({
					indexs: e.detail.value
				});
			},
			//营业执照上传
			choosezhizhaoimg() {
				console.log("执行几级");
				var that = this;
				uni.chooseImage({
					counts: 1,
					sizeType: ['compressed'],
					// 可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album', 'camera'],
					// 可以指定来源是相册还是相机，默认二者都有
					success: function(res) {
						that.uploadzhizhaoimg({
							path: res.tempFilePaths //这里是选取的图片的地址数组
			
						});
					}
				});
			},
			uploadzhizhaoimg: function(data) {
				uni.showLoading({
					title: '上传中...',
					mask: true
				});
				console.log("上传中");
				var that = this; // console.log("打印",data.path.length)
				// var count = that.data.addedCount + data.path.length;
			
				var counts = that.zhizhaoCounts;
			
				for (var i = 0; i < data.path.length; i++) {
					// console.log("走这里")
					uni.uploadFile({
						url: siteInfo.url + 'Base/upload',
						filePath: data.path[i],
						header: {
							'Authorization': uni.getStorageSync('token')
						},
						name: 'file',
						formData: {
							'wxapp_id': siteInfo.uniacid
						},
						success: resp => {
							var pic = JSON.parse(resp.data);
							console.log("打印",pic)
							if (pic.status == 200) {
								counts++;
							    that.setData({
							        // zhizhaoCount: counts,
									 zhizhaoCounts: counts,
							        // zhizhaoimg:[...pic.data]
							    });
								that.zhizhaoimg.push(pic.data)
							    uni.hideLoading({});
							} else {
							    uni.showToast({
							        title: pic.message,
							        icon: 'none'
							    });
							}
						}
					});
				}
			},
			
			// 删除图片
			deletezhizhaoimg(e) {
				this.zhizhaoimg.splice(e.detail, 1);
				// this.picList.splice(e.detail, 1);
				this.setData({
					zhizhaoimg: this.zhizhaoimg,
					// picLists: this.picLists,
					zhizhaoCounts: this.zhizhaoCounts - 1
				});
				// console.log("删除后的", this.zhizhaoimg);
			},
			
			
			
			//食品经营许可证上传
			choosejingyingimg() {
				console.log("执行几级");
				var that = this;
				uni.chooseImage({
					counts: 1,
					sizeType: ['compressed'],
					// 可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album', 'camera'],
					// 可以指定来源是相册还是相机，默认二者都有
					success: function(res) {
						that.uploadjingyingimg({
							path: res.tempFilePaths //这里是选取的图片的地址数组
			
						});
					}
				});
			},
			uploadjingyingimg: function(data) {
				uni.showLoading({
					title: '上传中...',
					mask: true
				});
				console.log("上传中");
				var that = this; // console.log("打印",data.path.length)
				// var count = that.data.addedCount + data.path.length;
			
				var counts = that.jingyingCounts;
			
				for (var i = 0; i < data.path.length; i++) {
					// console.log("走这里")
					uni.uploadFile({
						url: siteInfo.url + 'Base/upload',
						filePath: data.path[i],
						header: {
							'Authorization': uni.getStorageSync('token')
						},
						name: 'file',
						formData: {
							'wxapp_id': siteInfo.uniacid
						},
						success: resp => {
							var pic = JSON.parse(resp.data);
							console.log("打印",pic)
							if (pic.status == 200) {
								counts++;
							    that.setData({
							        // zhizhaoCount: counts,
									 jingyingCounts: counts,
							        // zhizhaoimg:[...pic.data]
							    });
								that.jingyingimg.push(pic.data)
							    uni.hideLoading({});
							} else {
							    uni.showToast({
							        title: pic.message,
							        icon: 'none'
							    });
							}
						}
					});
				}
			},
			
			// 删除图片
			deletejingyingimg(e) {
				this.jingyingimg.splice(e.detail, 1);
				// this.picList.splice(e.detail, 1);
				this.setData({
					jingyingimg: this.jingyingimg,
					// picLists: this.picLists,
					jingyingCounts: this.jingyingCounts - 1
				});
				// console.log("删除后的", this.zhizhaoimg);
			},
			
			
			
			//健康证上传
			choosejiankangimg() {
				console.log("执行几级");
				var that = this;
				uni.chooseImage({
					counts: 1,
					sizeType: ['compressed'],
					// 可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album', 'camera'],
					// 可以指定来源是相册还是相机，默认二者都有
					success: function(res) {
						that.uploadjiankangimg({
							path: res.tempFilePaths //这里是选取的图片的地址数组
			
						});
					}
				});
			},
			uploadjiankangimg: function(data) {
				uni.showLoading({
					title: '上传中...',
					mask: true
				});
				console.log("上传中");
				var that = this; // console.log("打印",data.path.length)
				// var count = that.data.addedCount + data.path.length;
			
				var counts = that.jiankangCounts;
			
				for (var i = 0; i < data.path.length; i++) {
					// console.log("走这里")
					uni.uploadFile({
						url: siteInfo.url + 'Base/upload',
						filePath: data.path[i],
						header: {
							'Authorization': uni.getStorageSync('token')
						},
						name: 'file',
						formData: {
							'wxapp_id': siteInfo.uniacid
						},
						success: resp => {
							var pic = JSON.parse(resp.data);
							console.log("打印",pic)
							if (pic.status == 200) {
								counts++;
							    that.setData({
							        // zhizhaoCount: counts,
									 jiankangCounts: counts,
							        // zhizhaoimg:[...pic.data]
							    });
								that.jiankangimg.push(pic.data)
							    uni.hideLoading({});
							} else {
							    uni.showToast({
							        title: pic.message,
							        icon: 'none'
							    });
							}
						}
					});
				}
			},
			
			// 删除图片
			deletejiankangimg(e) {
				this.jiankangimg.splice(e.detail, 1);
				// this.picList.splice(e.detail, 1);
				this.setData({
					jiankangimg: this.jiankangimg,
					// picLists: this.picLists,
					jiankangCounts: this.jiankangCounts - 1
				});
				// console.log("删除后的", this.zhizhaoimg);
			},
			
			
			
			
			
			
			
			
			
			//图片上传
			chooseImagesss() {
				console.log("执行几级");
				var that = this;
				uni.chooseImage({
					counts: 1,
					sizeType: ['compressed'],
					// 可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album', 'camera'],
					// 可以指定来源是相册还是相机，默认二者都有
					success: function(res) {
						that.uploadimgs({
							path: res.tempFilePaths //这里是选取的图片的地址数组
			
						});
					}
				});
			},
			//图片上传
			chooseImages() {
				console.log("执行几级");
				var that = this;
				uni.chooseImage({
					count: 1,
					sizeType: ['compressed'],
					// 可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album', 'camera'],
					// 可以指定来源是相册还是相机，默认二者都有
					success: function(res) {
						that.uploadimg({
							path: res.tempFilePaths //这里是选取的图片的地址数组

						});
					}
				});
			},
			uploadimgs: function(data) {
				uni.showLoading({
					title: '上传中...',
					mask: true
				});
				console.log("上传中");
				var that = this; // console.log("打印",data.path.length)
				// var count = that.data.addedCount + data.path.length;
			
				var counts = that.addedCountss;
			
				for (var i = 0; i < data.path.length; i++) {
					// console.log("走这里")
			
					uni.uploadFile({
						// url: app.globalData.util.url() + 'c=entry&a=wxapp&do=ImgPost&m=gc_school',
						// filePath: data.path[i],
						// name: 'file',
						// formData: null,
						url: siteInfo.url + 'Base/upload',
						filePath: data.path[i],
						header: {
							'Authorization': uni.getStorageSync('token')
						},
						name: 'file',
						formData: {
							'wxapp_id': siteInfo.uniacid
						},
						success: resp => {
			
			
							var pic = JSON.parse(resp.data);
							console.log('111')
							console.log(pic.status, '---11---')
							if (pic.status == 200) {
								counts++; // console.log(pic)
								console.log('222')
								var picList = that.picListss;
								picList.push(pic.data); // console.log(data.path[i])
			
								var images = that.imagesss.concat(pic.data);
								console.log('333')
								that.setData({
									imagesss: images,
									addedCountss: counts,
									picListss: picList
								});
								console.log(that.addedCount);
								console.log('444')
								if (counts == that.picListss.length) {
									console.log('555')
									uni.hideLoading({});
								}
							} else {
								uni.showToast({
									title: pic.message,
									icon: 'none'
								});
							}
						}
					});
				}
			},
			uploadimg: function(data) {
				uni.showLoading({
					title: '上传中...',
					mask: true
				});
				console.log("上传中");
				var that = this; // console.log("打印",data.path.length)
				// var count = that.data.addedCount + data.path.length;

				var count = that.addedCount;

				for (var i = 0; i < data.path.length; i++) {
					// console.log("走这里")

					uni.uploadFile({
						// url: app.globalData.util.url() + 'c=entry&a=wxapp&do=ImgPost&m=gc_school',
						// filePath: data.path[i],
						// name: 'file',
						// formData: null,
						url: siteInfo.url + 'Base/upload',
						filePath: data.path[i],
						header: {
							'Authorization': uni.getStorageSync('token')
						},
						name: 'file',
						formData: {
							'wxapp_id': siteInfo.uniacid
						},
						success: resp => {


							var pic = JSON.parse(resp.data);
							console.log('111')
							console.log(pic.status, '---11---')
							if (pic.status == 200) {
								count++; // console.log(pic)
								console.log('222')
								var picList = that.picList;
								picList.push(pic.data); // console.log(data.path[i])

								var images = that.images.concat(pic.data);
								console.log('333')
								that.setData({
									images: images,
									addedCount: count,
									picList: picList
								});
								console.log(that.addedCount);
								console.log('444')
								if (count == that.picList.length) {
									console.log('555')
									uni.hideLoading({});
								}
							} else {
								uni.showToast({
									title: pic.message,
									icon: 'none'
								});
							}
						}
					});
				}
			},

			// 删除图片
			deleteImage(e) {
				this.images.splice(e.detail, 1);
				this.picList.splice(e.detail, 1);
				this.setData({
					images: this.images,
					picList: this.picList,
					addedCount: this.addedCount - 1
				});
				console.log("删除后的", this.picList);
			},
			// 删除图片
			deleteImages(e) {
				this.imagesss.splice(e.detail, 1);
				this.picList.splice(e.detail, 1);
				this.setData({
					imagesss: this.imagesss,
					picLists: this.picLists,
					addedCountss: this.addedCountss - 1
				});
				console.log("删除后的", this.picList);
			},
			upload() {
				var res = this.img_url;
				console.log(res);
				uni.showLoading();

				for (var i = 0; i < res.length; i++) {
					uni.uploadFile({
						url: app.globalData.util.url() + 'c=entry&a=wxapp&do=ImgPost&m=gc_school',
						// 仅为示例，非真实的接口地址
						filePath: res[i],
						header: {
							'content-type': 'application/x-www-form-urlencoded'
						},
						name: 'file',
						success: result => {
							var data = result.data;
							data = JSON.parse(data).data;
							this.imgurl.push(data);
							console.log(this.imgurl);
							uni.hideLoading();
						}
					});
				}
			},


			bookNameInput: function(e) {
				this.setData({
					name: e.detail.value
				});
			},

			oldpriceInput: function(e) {

				var that = this
				e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
				this.$nextTick(() => {
					this.setData({
						oldprice: e.target.value
					});
				})
			},

			newpriceInput: function(e) {

				var that = this
				e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
				this.$nextTick(() => {
					this.setData({
						newprice: e.target.value
					});
					// that.rechargeMoney= e.target.value
				})
			},

			phoneFun: function(e) {
				this.setData({
					phone: e.detail.value
				});
			},
			nameFun: function(e) {
				this.setData({
					names: e.detail.value
				});
			},

			stockFun: function(e) {
				this.setData({
					stock: e.detail.value
				});
			},

			descInput: function(e) {
				this.setData({
					desc: e.detail.value
				});
			},

			chooseimage: function() {
				var that = this;
				this.setData({
					imgurl: []
				});
				uni.chooseImage({
					count: 1,
					sizeType: ["original", "compressed"],
					sourceType: ["album", "camera"],
					success: function(t) {
						t.tempFilePaths;

						if (t.tempFilePaths.length > 0) {
							var a = that.img_url;
							a = a.concat(t.tempFilePaths);
							that.setData({
								img_url: a,
								canphoto: that.canphoto - t.tempFilePaths.length
							});

							if (that.img_url.length >= that.count) {
								that.setData({
									hideAdd: 1
								});
								uni.showToast({
									title: "最多上传4张照片",
									icon: "none"
								});;
							} else {
								that.setData({
									hideAdd: 0
								});
							}

							;
							that.upload(that.img_url);
						}
					}
				});
			},

			deleteImg: function(e) {
				var t = this.img_url;
				var a = e.target.dataset.index;;
				t.splice(a, 1);
				this.setData({
					img_url: t,
					hideAdd: !(this.img_url.length < this.count)
				});;
			}
		}
	};
</script>


<style>
	.bgcolor {
		width: 100%;
		height: 425rpx;
		/* background: linear-gradient(0deg, #FFFFFF 0%, #4786FA 0%, #F8F8F8 0%, #3560E9 56.99999999999999%, #3560E9 100%); */
		background: linear-gradient(0deg, #FFFFFF 0%, #4786FA 0%, #F8F8F8 0%, #f75d3d 56.99999999999999%, #FF5853 100%);
	}

	.bgmain {
		background-color: #0000;
		color: #FFFFFF;
	}

	.heads {
		width: 100%;
		height: 749rpx;
		padding: 0 30rpx;
		margin-top: -244rpx;
	}

	.heads-bg {
		width: 100%;
		height: 100%;
		background: #FFFFFF;
		border-radius: 20rpx;
		padding: 0 30rpx;
	}

	.title-input {
		text-align: right;
		padding-right: 0rpx !important;
	}

	.title-address {
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #FF5853;
		line-height: 18rpx;
	}

	.cu-form-group {
		padding: 0 !important;
	}

	.picker {
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #666666;
		line-height: 18rpx;
	}

	.shop-details {
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #666666;
		line-height: 18rpx;
	}
</style>
